for (foo of bar) {
  if (foo.id === id) {
    doSomething(foo);
  }
  break;
}
